package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Accessors(chain = true)
@Data
public class AlbumDeleteParam implements Serializable {
    @NotNull(message = "删除相册失败,id必须大于0")
    @Range(min = 1, message = "id必须大于0")
    @ApiModelProperty(value = "需要删除的相册id,id必须大于0", required = true, example = "97")
    private Long id;
}
